<st #st [scroll]="{ y: '100%' }" [size]="TABLE_PARAMETER.size" [columns]="stColumns" [data]="tableData"
  [loading]="loading" [bordered]="true" [ps]="TABLE_PARAMETER.ps" [pi]="TABLE_PARAMETER.pi"
  [total]="TABLE_PARAMETER.page.total" [multiSort]="TABLE_PARAMETER.multiSort" [page]="TABLE_PARAMETER.page"
  (change)="change($event)">
  <ng-template st-row="number" let-row let-index="index">
    {{ ((st.pi ? st.pi : 1) - 1) * (st.ps ? st.ps : 0) + (index + 1) }}
  </ng-template>
  <ng-template st-row="academicTotal" let-row let-index="index">
    {{ row.academicPoint.academicTotal * 0.7 | number: '1.2-2' }}
  </ng-template>
  <ng-template st-row="ideologicalTotal" let-row let-index="index">
    {{ row.ideologicalPoint.ideologicalTotal * 0.2 | number: '1.2-2' }}
  </ng-template>
  <ng-template st-row="stylisticTotal" let-row let-index="index">
    {{ row.stylisticPoint.stylisticTotal * 0.1 | number: '1.2-2' }}
  </ng-template>
  <ng-template st-row="comprehensiveScoreTotal" let-row let-index="index">
    {{ row.comprehensiveScoreTotal | number: '1.2-2' }}
  </ng-template>
  <ng-template st-row="operations" let-row let-index="index">
    <!-- 
      学生操作：开启测评，进入自评阶段保存后，可以选择送审
      班级综测管理员：对班级内学生的综测进行评审，按照规则评审好后，班级学生全选后送审到年级复审
      学院综测管理员：对各班级提交的学生综测数据继续评审，提交后保存为综测公示数据，
                      公示三天后，数据自动转为结果，不可修改
      送审操作：学生在自评状态时操作，班级综测管理员在班级评议状态时操作，学院在年级复审时操作
      修改操作：学生在自评状态时操作，班级综测管理员在班级评议状态时操作，学院在年级复审时操作
      删除操作：所有数据不可删除
      新增操作：所有数据由系统新增，不可手动新增
     -->
    <ng-container>
      <span [acl]="'ROLE_INSTRUCTOR'" *ngIf="row.compAssessProcessStatus === 'GRADE_REVIEW' && !row.isReport">
        <a (click)="view(row)">
          送审</a>
        <nz-divider nzType="vertical"></nz-divider>
      </span>
      <span [acl]="'ROLE_INSTRUCTOR'" *ngIf="row.compAssessProcessStatus === 'DONE_ASSESSMENT' && !row.isReport">
        <a (click)="view(row)">
          审结</a>
        <nz-divider nzType="vertical"></nz-divider>
      </span>
    </ng-container>
    <ng-container>
      <span [acl]="'ROLE_INSTRUCTOR'" *ngIf="row.compAssessProcessStatus === 'GRADE_REVIEW' && !row.isReport">
        <a (click)="modify(row)">编辑</a>
        <nz-divider nzType="vertical"></nz-divider>
      </span>
      <span [acl]="'ROLE_INSTRUCTOR'" *ngIf="row.compAssessProcessStatus === 'DONE_ASSESSMENT' && !row.isReport">
        <a (click)="modify(row)">编辑</a>
        <nz-divider nzType="vertical"></nz-divider>
      </span>
    </ng-container>

    <ng-container>
      <span [acl]="'ROLE_STUDENT'" *ngIf="row.compAssessProcessStatus === 'SELF_ASSESSMENT' && !row.isReport">
        <nz-popconfirm (nzOnConfirm)="view(row)" [nzTitle]="'是否自评送审？'">
          <a nz-popconfirm>自评送审</a>
        </nz-popconfirm>
        <nz-divider nzType="vertical"></nz-divider>
      </span>
      <ng-container *ngIf="row.compAssessProcessStatus === 'SELF_ASSESSMENT' && !row.isReport">
        <a (click)="modify(row)" [acl]="'ROLE_STUDENT'">编辑</a>
        <nz-divider nzType="vertical"></nz-divider>
      </ng-container>
      <ng-container *ngIf="row.compAssessProcessStatus === 'CLASS_ASSESSMENT' && !row.isReport">
        <span [acl]="'ROLE_CLASS_EVALUATION_ADMIN'">
          <a (click)="view(row)">班评送审</a>
          <nz-divider nzType="vertical"></nz-divider>
        </span>
        <span [acl]="'ROLE_CLASS_EVALUATION_ADMIN'">
          <a (click)="modify(row)">编辑</a>
          <nz-divider nzType="vertical"></nz-divider>
        </span>
      </ng-container>
    </ng-container>
    <ng-container>
      <a (click)="view(row)">查看</a>
      <span [acl]="'ROLE_STUDENT'" *ngIf="(row.compAssessProcessStatus === 'CLASS_ASSESSMENT' || 
                        row.compAssessProcessStatus === 'GRADE_REVIEW') && !row.isReport">
        <nz-divider nzType="vertical"></nz-divider>
        <a (click)="supplement(row)">补录材料</a>
      </span>
    </ng-container>
  </ng-template>
</st>
<!-- 新建或修改 -->
<app-comprehensive-evaluation-detail #comprehensiveEvaluationDetailComponent (notification)="loadData()">
</app-comprehensive-evaluation-detail>
